package com.fx.asds.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 行政区划对象 fx_administrative_divisions
 *
 * @author fxiao
 * @date 2021-04-12
 */
public class Asds extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 行政级别 */
    @Excel(name = "行政级别")
    private Integer level;

    /** 向上的所有行政区划代码，用“-”分隔 */
    private String parents;

    /** 行政区划代码 */
    @Excel(name = "行政区划代码")
    private Long code;

    /** 区划名 */
    @Excel(name = "区划名")
    private String name;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setParents(String parents)
    {
        this.parents = parents;
    }

    public String getParents()
    {
        return parents;
    }
    public void setCode(Long code)
    {
        this.code = code;
    }

    public Long getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("level", getLevel())
            .append("parents", getParents())
            .append("code", getCode())
            .append("name", getName())
            .toString();
    }
}
